home *** CD-ROM | disk | FTP | other *** search
- Path: colossus.holonet.net!russell
- From: russell@news.mdli.com (Russell Blackadar)
- Newsgroups: comp.lang.c++
- Subject: Re: HELP: syntax calling member fn() of returned object
- Date: 12 Jan 1996 19:46:10 GMT
- Organization: HoloNet National Internet Access System: 510-704-1058/modem
- Message-ID: <4d6dq2$1jr@colossus.holonet.net>
- References: <4d3gff$ga4@lib104.its.rpi.edu>
- NNTP-Posting-Host: jubal.mdli.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Barry B Floyd (floydb1@lib104.its.rpi.edu) wrote:
-
- : What is the syntax (if any) for calling a member function
- : of a returned object. For example:
-
- (deleted)
-
- : I would rather not have to do:
-
- : String a_string ;
-
- : a_string = Function ( ... ) ;
-
- : I would rather do something like:
-
- : if ( Function ( ... ).length () == 0 )
-
- Ummm, what what the error message when you tried it? :)
-
- The syntax is correct.
- You might learn a bit by thinking through what happens at
- each step in the expression. Function creates a temporary
- String which need not be assigned to something before it's
- used.
- --
- Russell Blackadar, russell@mdli.com
-